package com.young.pattern.factoryMethodPattern;

import lombok.extern.slf4j.Slf4j;

/**
 * 日志记录器的接口;充当抽象工行角色
 *
 *
 */
@Slf4j
public abstract class LoggerFactory {
    public void writeLog(){
        Logger log = createLog();
        log.writeLog();
    }

    public abstract Logger createLog();

}
